package org.haredot.callback;

import java.sql.PreparedStatement;
import java.sql.ResultSet;

public interface PreparedStatementSetter<T> {

    void bindParams(PreparedStatement ps) throws Exception;

    /**
     * 不需要用户调用 next, 直接获取值即可
     * @param rs
     * @return
     * @throws Exception
     */
    T getGeneratorKey(ResultSet rs) throws Exception;;
}
